<?php
/**
 * Created by PhpStorm.
 * User: 10037
 * Date: 2022/6/11
 * Time: 19:18
 */

namespace app\admin\model;


use think\Model;

class Usertable extends Model
{
    protected $pk='id';

    public function userLogin($name,$password){
       $result= $this->where('name','=',$name)->find();
       if(empty($result)){
           return false;
       }
       if($result['password']!==$password){
           return false;
       }

       return true;
    }
}